package com.rattsoftware.client.model;

import com.extjs.gxt.ui.client.data.BaseModelData;

public class SubMenuItem extends BaseModelData{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private static int ID = 0;
	
	public SubMenuItem() {
		set("id", ID++);
	}

	public SubMenuItem(String name, String iconStyle) {
		set("id", ID++);
		set("name", name);
		set("icon", iconStyle); 
	}

	public Integer getId() {
		return (Integer) get("id");
	}

	public String getName() {
		return (String) get("name");
	}

	public String toString() {
		return getName();
	}
}
